<template>
  <el-container>
    <Aside></Aside>
    <el-divider direction="vertical"></el-divider>
    <el-main class="contribution__main">
      <nuxt-child />
    </el-main>
  </el-container>
</template>

<script>
import Aside from '@/components/contribution/Aside'
export default {
  name: 'Contribution',
  components: {
    Aside
  },
  layout: 'full',
  validate({ route }) {
    return !(route.path === '/contribution')
  },
  middleware: 'isAuthenticated'
}
</script>

<style lang="scss" scoped>
.el-container {
  background-color: #fff;
}
.el-container,
.el-aside,
.el-main {
  height: 100%;
}
.contribution__main {
  padding: 0px 60px;
}
/deep/ .el-divider--vertical {
  height: 100%;
}
/deep/ .el-divider--horizontal {
  margin: 0;
}
</style>
